from django.db.models.fields import CharField
from rest_framework import serializers
from snippets.models import Project

class ProjectTypeSerializer(serializers.ModelSerializer):
    class Meta:
        model = Project
        fields = ('id', 'name')
        
class ProjectAbstructSerializer(serializers.ModelSerializer):
    class Meta:
        model = Project
        fields = ('id','name','publish_time','icon','project_type')
